package com.xbao.controller;

import com.xbao.core.http.CommRequest;
import com.xbao.core.http.CommResult;
import com.xbao.model.SpreadTemplate;
import com.xbao.model.Subject;
import com.xbao.model.req.SubjectReq;
import com.xbao.service.SpreadTemplateService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Api(value = "/spread", tags = "spread")
@RequestMapping(value = "spread")
@Controller
@EnableAutoConfiguration
public class SpreadTemplateController {
   /* @Resource
    private SpreadTemplateService spreadTemplateService;*/

    @ApiOperation(value = "list", notes = "list")
    @RequestMapping(value = "/list", method = RequestMethod.POST)
    @ResponseBody
    public CommResult<List<SpreadTemplate>> querySubjects(@RequestBody CommRequest<SpreadTemplate> spreadTemplateCommRequest) {
        return new CommResult<List<SpreadTemplate>>();
    }
}
